package com.example.springboot.service;

import com.example.springboot.controller.request.QuestionPageRequest;
import com.example.springboot.entity.Question;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IQuestionService {

    List<Question> list();

    PageInfo<Question> page(QuestionPageRequest baseRequest);

    void save(Question question);


   Question getById(Integer id);

    void update(Question question);

    void deleteById(Integer id);
}
